"use strict";

var headerConfirmFlag = "headerConfirm_";
var headerEditFlag = "headerEdit_";

var headerWrap = {
    template: headerTem,
    methods: {
        confirm: function confirm() {
            APP.$emit(headerConfirmFlag + store.state.showFlag);
        },
        edit: function edit() {
            APP.$emit(headerEditFlag + store.state.showFlag);
        }
    }
};

var loadingWrap = Vue.component('loadingWrap', { template: loadingTem });
var bodyWrap = Vue.component('bodyWrap', {
    template: bodyTem,
    props: {
        isShow: {
            type: Boolean,
            default: false
        }
    }
});
var noDataWrap = { template: noDataTem };
//折叠item
var foldWrap = {
    template: foldTem,
    props: {
        list: {
            default: []
        }
    },
    data: function data() {
        return {
            flag: 1
        };
    },

    methods: {
        _open: function _open(v) {
            this.flag = v;
            var arr = this.$refs.fold.parentNode.childNodes[2].children;
            for (var i = 0; i < arr.length; i++) {
                publicMethods.togClass(arr[i], "fold-hide");
            }
        }
    }
};
var searchWrap = {
    template: searchTem,
    methods: {
        inputValue: function inputValue(e) {
            this.$emit("inputValue", e.target.value);
        }
    }
};
// 发起对话 拨打电话
var actionSheetWrap = {
    template: actionSheetTem,
    props: {
        isShow: {
            type: Boolean,
            default: false
        },
        actionData: {
            type: Array,
            default: []
        }
    },
    data: function data() {
        return {
            wrapShow: false,
            itemShow: false
        };
    },

    methods: {
        check: function check(v) {
            this.$emit("check", v);
            this.cancel();
        },
        cancel: function cancel() {
            var _this = this;

            this.wrapShow = false;
            this.itemShow = false;
            setTimeout(function () {
                _this.$emit("cancel", false);
            }, 200);
        }
    },
    watch: {
        isShow: function isShow() {
            var _this2 = this;

            if (this.isShow) {
                setTimeout(function () {
                    _this2.wrapShow = true;
                    _this2.itemShow = true;
                }, 20);
            }
        }
    }
};
var detailsItemWrap = {
    template: detailsItemTem,
    props: {
        list: {
            type: Object,
            default: {}
        }
    },
    components: {
        foldWrap: foldWrap
    }
};
var peopleList = [];
var peopleListWrap = {
    template: peopleListTem,
    data: function data() {
        return {
            flag: true,
            checked: "",
            searchList: []
        };
    },

    methods: {
        init: function init() {
            var _this3 = this;

            headerTitleChange(111);
            store.commit("_headerType", 2);
            this.checked = publicData.peopleChecked;
            if (peopleList.length === 0) {
                ajax_.getType("user", { roleID: 1 }, function (data) {
                    peopleList = data;
                    _this3.searchList = peopleList;
                });
            } else {
                this.searchList = peopleList;
            }
        },
        inputValue: function inputValue(v) {
            var k = v.toString().trim();
            if (k != "") {
                this.searchList = this.list.filter(function (v) {
                    return v.role.name.indexOf(k) != -1;
                });
            } else {
                this.searchList = peopleList;
            }
        },
        confirmBack: function confirmBack() {
            var _this4 = this;

            alert_(function () {
                scrollTriggerDownScroll();
                _this4.flag = false;
                goBack(-2);
                publicData.peopleChecked = "";
            });
        },
        newsSubmit: function newsSubmit(data) {
            var _this5 = this;

            ajax_.confirmPutType("bulletinApproval/" + publicData.itemDetails.id, data, function () {
                _this5.confirmBack();
            });
        },
        eventAndWarnSubmit: function eventAndWarnSubmit(data) {
            var _this6 = this;

            ajax_.confirmPutType(eventAndWarnUpdateUrl, data, function () {
                _this6.confirmBack();
            });
        }
    },
    components: {
        searchWrap: searchWrap
    },
    created: function created() {
        this.init();
    },
    mounted: function mounted() {
        var _this7 = this;

        APP.$on(headerConfirmFlag + "111", function () {
            publicData.peopleChecked = _this7.checked;
            adviceTextarea = adviceTextarea === "" ? "请示领导" : adviceTextarea;
            var data = {
                advice: adviceTextarea, //研判意见
                approverID: _this7.checked, //请示人ID
                type: 1 //1.转批  2.同意  3.退回
            };
            switch (getHeader.type) {
                case 1:
                    _this7.newsSubmit(data);
                    break;
                case 2:
                case 3:
                    data.baseID = publicData.details.id;
                    _this7.eventAndWarnSubmit(data);
                    break;
            }
        });
    },
    beforeDestroy: function beforeDestroy() {
        APP.$off(headerConfirmFlag + "111");
        if (getHeader.type === 1) {
            store.dispatch("showFlag_action", 1);
        } else {
            store.dispatch("showFlag_action", 20);
        }
        store.commit("_headerType", 99);
    }
};
//letter buddyName,buddyID，imgUrl
var contactsWrap = {
    template: contactsTem,
    data: function data() {
        return {
            list: {},
            keywords: "",
            checked: [],
            switchFlag: 1
        };
    },

    methods: {
        init: function init() {
            var _this8 = this;

            this.list = vrvInit.contactList;
            this.checked = publicData.peopleChecked;
            store.commit("_headerType", 2);
            store.dispatch("showFlag_action", 21);
            publicMethods.headerConfirm = function () {
                publicData.peopleChecked = _this8.checked;
                alert(JSON.stringify(_this8.checked));
                goBack();
            };
        },
        inputValue: function inputValue(v) {
            var k = v.toString().trim();
            if (k != "") {
                var d = { a: { letter: "", arr: [] } };
                d.a.arr = vrvInit.contactListForSearch.filter(function (v) {
                    return v.buddyName.indexOf(k) != -1;
                });
                this.list = d;
            } else {
                this.list = vrvInit.contactList;
            }
        }
    },
    components: {
        loadingWrap: loadingWrap,
        searchWrap: searchWrap
    },
    created: function created() {
        this.init();
    },
    beforeDestroy: function beforeDestroy() {
        store.commit("_headerType", 0);
        publicMethods.backDetail();
    }
};

// 列表页
var newsUrl = "todayBulletin"; //快报列表
var eventUrl = "baseTable/eventManageList"; //事件列表
var warnUrl = "baseTable/riskManageList"; //预警列表
var eventAndWarnUpdateUrl = "eventApproval"; //预警列表
var adviceTextarea = "";

//主动下拉刷新列表
var scrollTriggerDownScroll = function scrollTriggerDownScroll() {
    pendingScroll.triggerDownScroll();
    completeScroll.triggerDownScroll();
};

// 首页列表页 userInfo.roleRank  1: 领导 2：值班员 3：地方联络员
var indexPage = {
    template: indexTem,
    data: function data() {
        return {
            show: true,
            switchFlag: 0,
            pageSize: 20,
            pendingPageIndex: 1,
            completePageIndex: 1,
            pendingList: [],
            completeList: [],
            header: "预警管理"
        };
    },

    methods: {
        init: function init() {
            var _this9 = this;

            if (getHeader.type === 1) {
                store.commit("_title", getHeader.getHeaderTxt());
            } else {
                store.commit("_title", getHeader.getHeaderTxt() + "管理");
            }
            getUserType(function () {
                setTimeout(function () {
                    _this9.pendingListInit();
                    _this9.completeListInit();
                }, 100);
            });
        },
        pendingListInit: function pendingListInit() {
            var _this10 = this;

            window.pendingScroll = new MeScroll("pending", {
                //刷新
                down: {
                    callback: function callback() {
                        _this10.getList(getHeader.type, 1, 1);
                    }
                },
                //加载更多
                up: {
                    page: {
                        size: this.size
                    },
                    auto: false,
                    loadFull: {
                        use: true,
                        delay: 500
                    },
                    htmlNodata: '<p class="upwarp-nodata">-- 暂无更多数据 --</p>',
                    callback: function callback() {
                        _this10.getList(getHeader.type, 1, 2);
                    }
                }
            });
        },
        completeListInit: function completeListInit() {
            var _this11 = this;

            window.completeScroll = new MeScroll("complete", {
                //刷新
                down: {
                    callback: function callback() {
                        _this11.getList(getHeader.type, 2, 1);
                    }
                },
                //加载更多
                up: {
                    page: {
                        size: this.size
                    },
                    auto: false,
                    loadFull: {
                        use: true,
                        delay: 500
                    },
                    htmlNodata: '<p class="upwarp-nodata">-- 暂无更多数据 --</p>',
                    callback: function callback() {
                        _this11.getList(getHeader.type, 2, 2);
                    }
                }
            });
        },
        getList: function getList(v, p, c) {
            /*
             v：加载列表类型
             p：1：待处理 2：已完结
             c：1：刷新 2：加载更多
             detailPath：详情跳转页
             */
            switch (v) {
                case 1:
                    this.detailPath = function (item) {
                        var v = "/news?id=" + item.id + "&status=" + item.stateClass;
                        return v;
                    };
                    this.newsListInit(p, c);
                    break;
                case 2:
                    this.detailPath = function (item) {
                        return "/details?id=" + item.id + "&status=" + item.stateClass;
                    };
                    this.eventListInit(p, c);
                    break;
                case 3:
                    this.detailPath = function (item) {
                        return "/details?id=" + item.id + "&status=" + item.stateClass;
                    };
                    this.warnListInit(p, c);
                    break;
            }
        },

        // listFlag 1：待处理 2：已完结     scrollFlag 1：刷新 2：加载更多
        newsListInit: function newsListInit(listFlag, scrollFlag) {
            var _this12 = this;

            var data = {
                userID: userInfo.id,
                size: this.pageSize
            };
            //今日快报待处理
            if (listFlag === 1) {
                data.type = 0;
                if (scrollFlag === 1) {
                    //刷新待处理列表
                    data.page = 1;
                    this.pendingPageIndex = 1;
                    ajax_.getType(newsUrl, data, function (v) {
                        _this12.pendingList = _this12.newsListFormat(v.records);
                        pendingScroll.endSuccess(v.records.length);
                    });
                } else {
                    // 加载更多
                    data.page = this.pendingPageIndex++;
                    ajax_.getType(newsUrl, data, function (v) {
                        _this12.pendingList = _this12.pendingList.concat(_this12.newsListFormat(v.records));
                        pendingScroll.endSuccess(v.records.length);
                    });
                }
            } else {
                //今日快报完结列表
                data.type = 1;
                if (scrollFlag === 1) {
                    //刷新待处理列表
                    data.page = 1;
                    this.completePageIndex = 1;
                    ajax_.getType(newsUrl, data, function (v) {
                        _this12.completeList = _this12.newsListFormat(v.records);
                        completeScroll.endSuccess(v.records.length);
                    });
                } else {
                    // 加载更多
                    data.page = this.completePageIndex++;
                    ajax_.getType(newsUrl, data, function (v) {
                        _this12.completeList = _this12.completeList.concat(_this12.newsListFormat(v.records));
                        completeScroll.endSuccess(v.records.length);
                    });
                }
            }
        },
        eventListInit: function eventListInit(listFlag, scrollFlag) {
            var _this13 = this;

            var data = {
                userID: userInfo.id,
                size: this.pageSize
            };
            if (listFlag === 1) {
                data.status = 1;
                if (scrollFlag === 1) {
                    //刷新待处理列表
                    data.page = 1;
                    this.pendingPageIndex = 1;
                    ajax_.getType(eventUrl, data, function (v) {
                        _this13.pendingList = _this13.eventAndWarnListFormat(v.records, 1);
                        pendingScroll.endSuccess(v.records.length);
                    });
                } else {
                    // 加载更多
                    data.page = this.pendingPageIndex++;
                    ajax_.getType(eventUrl, data, function (v) {
                        _this13.pendingList = _this13.pendingList.concat(_this13.eventAndWarnListFormat(v.records, 1));
                        pendingScroll.endSuccess(v.records.length);
                    });
                }
            } else {
                //完结列表
                data.status = 2;
                if (scrollFlag === 1) {
                    //刷新待处理列表
                    data.page = 1;
                    this.completePageIndex = 1;
                    ajax_.getType(eventUrl, data, function (v) {
                        _this13.completeList = _this13.eventAndWarnListFormat(v.records, 2);
                        completeScroll.endSuccess(v.records.length);
                    });
                } else {
                    // 加载更多
                    data.page = this.completePageIndex++;
                    ajax_.getType(eventUrl, data, function (v) {
                        _this13.completeList = _this13.completeList.concat(_this13.eventAndWarnListFormat(v.records, 2));
                        completeScroll.endSuccess(v.records.length);
                    });
                }
            }
        },
        warnListInit: function warnListInit(listFlag, scrollFlag) {
            var _this14 = this;

            var data = {
                userID: userInfo.id,
                size: this.pageSize
            };
            if (listFlag === 1) {
                data.status = 1;
                if (scrollFlag === 1) {
                    //刷新待处理列表
                    data.page = 1;
                    this.pendingPageIndex = 1;
                    ajax_.getType(warnUrl, data, function (v) {
                        _this14.pendingList = _this14.eventAndWarnListFormat(v.records, 1);
                        pendingScroll.endSuccess(v.records.length);
                    });
                } else {
                    // 加载更多
                    data.page = this.pendingPageIndex++;
                    ajax_.getType(warnUrl, data, function (v) {
                        _this14.pendingList = _this14.pendingList.concat(_this14.eventAndWarnListFormat(v.records, 1));
                        pendingScroll.endSuccess(v.records.length);
                    });
                }
            } else {
                //完结列表
                data.status = 2;
                if (scrollFlag === 1) {
                    //刷新待处理列表
                    data.page = 1;
                    this.completePageIndex = 1;
                    ajax_.getType(warnUrl, data, function (v) {
                        _this14.completeList = _this14.eventAndWarnListFormat(v.records, 2);
                        completeScroll.endSuccess(v.records.length);
                    });
                } else {
                    // 加载更多
                    data.page = this.completePageIndex++;
                    ajax_.getType(warnUrl, data, function (v) {
                        _this14.completeList = _this14.completeList.concat(_this14.eventAndWarnListFormat(v.records, 2));
                        completeScroll.endSuccess(v.records.length);
                    });
                }
            }
        },
        newsListFormat: function newsListFormat(arr) {
            if (arr.length) {
                return arr.map(function (i) {
                    if (i.status == 0) {
                        if (i.approver == userInfo.id) {
                            i.stateClass = "i-state-pend";
                            i.stateTxt = "待办";
                        } else {
                            i.stateClass = "i-state-done";
                            i.stateTxt = "已办";
                        }
                    } else if (i.status == 1) {
                        i.stateClass = "i-state-complete";
                        i.stateTxt = "办结";
                    }
                    i.imgUrl = "./img/e01.png";
                    i.title = i.name;
                    i.updateTime = i.approvalTime;
                    return i;
                });
            } else {
                return [];
            }
        },
        eventAndWarnListFormat: function eventAndWarnListFormat(arr, type) {
            return arr.map(function (i) {
                if (type === 1) {
                    if (i.extend.approvalUserID == userInfo.id) {
                        i.stateClass = "i-state-pend";
                        i.stateTxt = "待办";
                    } else {
                        i.stateClass = "i-state-done";
                        i.stateTxt = "已办";
                    }
                } else if (type === 2) {
                    i.stateClass = "i-state-complete";
                    i.stateTxt = "办结";
                }
                if (getHeader.type === 3) {
                    i.imgUrl = "./img/w" + i.extend.warningLevel + ".png";
                } else {
                    i.imgUrl = "./img/e01.png";
                }
                return i;
            });
        },
        go_details: function go_details(item) {
            publicData.itemDetail = item;
            goPathWithParams(this.detailPath(item));
        }
    },
    components: {
        headerWrap: headerWrap,
        noDataWrap: noDataWrap
    },
    mounted: function mounted() {
        if (GetQueryString("isPush").toString() != "1") {
            this.init();
        }
    }
};

//事件 预警详情页面
var detailsPage = {
    template: detailsTem,
    data: function data() {
        return {
            actionShow: false,
            bodyShow: false,
            leaderListBtnShow: false,
            details: { format: { btnFlag: false, newArr: [] } },
            switch_cs_show: false,
            actionUserID: "",
            actionUserPhone: "",
            actionData: [{ txt: '发起对话', iconClass: "action-icon-chat", value: "" }, { txt: '拨打电话', iconClass: "action-icon-call", value: "" }]
        };
    },

    methods: {
        init: function init() {
            if (userInfo.roleRank == 2) {
                this.leaderListBtnShow = true;
            }
            eventAndWarnUpdateUrl = getHeader.type === 2 ? "eventApproval" : "riskApproval";
            headerTitleChange(2);
            this.getDetails();
            // this.switchInit();
        },
        getDetails: function getDetails() {
            var _this15 = this;

            ajax_.getType("baseTable/" + GetQueryString("id"), {}, function (data) {
                _this15.details = data;
                _this15.details.format = detailsFun.approvalListFormat(data.extend.approvalList, "approvalStatue");
                if (parseInt(getHeader.type) === 2) {
                    _this15.details.baseInfo = eventKeys.init(data);
                } else {
                    _this15.details.baseInfo = warnKeys.init(data);
                }
                if (data.approvalUserID == userInfo.id) {
                    _this15.btnShow = true;
                }
                publicData.details = data;
                _this15.bodyShow = true;
            });
        },
        switchInit: function switchInit() {
            var _this16 = this;

            if (document.getElementById("mySwitch")) {
                mui('.mui-switch')['switch']();
                document.getElementById("mySwitch").addEventListener("toggle", function (event) {
                    if (event.detail.isActive) {
                        _this16.switch_cs_show = true;
                    } else {
                        _this16.switch_cs_show = false;
                    }
                });
            }
        },
        openAction: function openAction(v) {
            this.actionShow = true;
            this.actionUserID = v.userInfo.linkdoodID;
            this.actionUserPhone = v.userInfo.cellphone;
        },
        actionClick: function actionClick(i) {
            if (i === 1) {
                vrv.jssdk.callPhone({
                    phoneNum: this.actionUserPhone,
                    success: function success(res) {}
                });
            } else {
                vrv.jssdk.openChat({
                    chatId: parseInt(this.actionUserID),
                    success: function success(res) {}
                });
            }
        },
        goPeopleList: function goPeopleList() {
            goName("peopleList", 3);
        },

        //领导按钮点击
        leaderBtnAction: function leaderBtnAction(type) {
            this.adviceFormat(type);
            var data = {
                type: type,
                baseID: this.details.id,
                advice: adviceTextarea
            };
            ajax_.confirmPutType(eventAndWarnUpdateUrl, data, function () {
                alert_back();
            });
        },
        adviceFormat: function adviceFormat(type) {
            var str = void 0;
            if (!adviceTextarea) {
                switch (parseInt(type)) {
                    case 2:
                        str = "同意";
                        break;
                    case 3:
                        str = "退回";
                        break;
                }
            } else {
                str = adviceTextarea;
            }
            adviceTextarea = str;
        },

        // type 1.转批 2.同意 3.退回
        btnClick: function btnClick(val) {
            this.leaderBtnAction(val);
            // goName("peopleList");
        },
        getAdvice: function getAdvice(e) {
            adviceTextarea = e.target.value;
        }
    },
    components: {
        foldWrap: foldWrap,
        detailsItemWrap: detailsItemWrap,
        noDataWrap: noDataWrap,
        actionSheetWrap: actionSheetWrap
    },
    mounted: function mounted() {
        var _this17 = this;

        APP.$on("isPush", function () {
            _this17.init();
        });
        isPush.init(this.init);
    },
    beforeDestroy: function beforeDestroy() {
        store.dispatch("showFlag_action", 20);
    }
};

var infoDetail = "";
var newsDetails = {
    template: newsDetailsTem,
    data: function data() {
        return {
            details: { approvalList: [] },
            actionShow: false,
            bodyShow: false,
            editFlag: false,
            btnShow: false,
            leaderListBtnShow: false,
            routerFlag: 0,
            actionUserID: "",
            actionUserPhone: "",
            actionData: [{ txt: '发起对话', iconClass: "action-icon-chat", value: "" }, { txt: '拨打电话', iconClass: "action-icon-call", value: "" }]
        };
    },

    methods: {
        init: function init() {
            if (userInfo.roleRank == 2) {
                this.leaderListBtnShow = true;
            }
            headerTitleChange(12);
            this.getDetails();
        },
        getDetails: function getDetails() {
            var _this18 = this;

            if (GetQueryString("status") == "i-state-pend") {
                this.btnShow = true;
                // store.commit("_headerType", 3);
            } else {
                    // store.commit("_headerType", 99);
                }
            ajax_.getType(newsUrl + "/" + GetQueryString("id"), {}, function (data) {
                publicData.itemDetails = data;
                _this18.details = data;
                var forDetails = detailsFun.approvalListFormat(data.approvalList, "status");
                _this18.details.approvalList = forDetails.newArr;
                _this18.bodyShow = true;
            });
        },
        deleteNews: function deleteNews() {
            confirm_(function () {
                console.log(1232);
            });
        },
        checkNews: function checkNews(v) {
            infoDetail = v;
            goName("newsDetails_info");
        },
        openAction: function openAction(v) {
            this.actionShow = true;
            this.actionUserID = v.userID;
            this.actionUserPhone = v.userInfo.cellphone;
        },
        actionClick: function actionClick(i) {
            if (i === 1) {
                vrv.jssdk.callPhone({
                    phoneNum: this.actionUserPhone,
                    success: function success(res) {}
                });
            } else {
                vrv.jssdk.openChat({
                    chatId: parseInt(this.actionUserID),
                    success: function success(res) {}
                });
            }
        },
        goPeopleList: function goPeopleList() {
            goName("peopleList", 3);
        },
        goAddList: function goAddList() {
            goName("newsAdd");
        },
        btnClick: function btnClick(index) {
            if (index === 1) {
                goName("newsPeopleList");
            } else {
                var data = {
                    advice: adviceTextarea, //研判意见
                    type: index //1.转批  2.同意  3.退回
                };
                if (adviceTextarea.trim() == "") {
                    switch (index) {
                        case 1:
                            data.advice = "转批";
                            break;
                        case 2:
                            data.advice = "同意";
                            break;
                        case 3:
                            data.advice = "退回";
                            break;
                    }
                }
                ajax_.confirmPutType("bulletinApproval/" + publicData.itemDetails.id, data, function () {
                    alert_(function () {
                        scrollTriggerDownScroll();
                        goBack();
                    });
                });
            }
        },
        getAdvice: function getAdvice(e) {
            adviceTextarea = e.target.value;
        }
    },
    components: {
        foldWrap: foldWrap,
        noDataWrap: noDataWrap,
        detailsItemWrap: detailsItemWrap,
        actionSheetWrap: actionSheetWrap
    },
    mounted: function mounted() {
        var _this19 = this;

        APP.$on("isPush", function () {
            _this19.init();
        });
        isPush.init(this.init);
        APP.$on("headerConfirm_12", function () {
            _this19.editFlag = false;
            store.commit("_headerType", 3);
            _this19.drag.destroy();
        });
        APP.$on("headerEdit_12", function () {
            _this19.editFlag = true;
            _this19.drag = Sortable.create(document.getElementById("sort"), {
                group: "news",
                animation: 150
            });
            store.commit("_headerType", 2);
        });
    },
    beforeDestroy: function beforeDestroy() {
        APP.$off("headerConfirm");
        APP.$off("headerEdit");
        store.commit("_headerType", 99);
        store.dispatch("showFlag_action", 1);
    }
};

var addNewsListWrap = {
    template: addNewsListTem,
    data: function data() {
        return {
            bodyShow: true,
            keyWords: "",
            checked: [],
            newsList: [1, 2, 3, 4, 5]
        };
    },

    methods: {
        inputValue: function inputValue(v) {
            this.keyWords = v;
        }
    },
    components: {
        searchWrap: searchWrap
    },
    created: function created() {
        store.commit("_headerType", 2);
        store.commit("_showFlag", 11);
        this.checked = publicData.newsAddChecked;
    },
    mounted: function mounted() {
        var _this20 = this;

        APP.$on("headerConfirm_11", function () {
            publicData.newsAddChecked = _this20.checked;
            goBack();
        });
    },
    beforeDestroy: function beforeDestroy() {
        APP.$off("headerConfirm_11");
        publicData.newsAddChecked = this.checked;
        publicMethods.backDetail();
    }
};

var infoDetailPage = {
    template: infoTem,
    data: function data() {
        return {
            details: 99
        };
    },
    created: function created() {
        store.commit("_headerType", 99);
    },
    mounted: function mounted() {
        this.details = infoDetail;
        this.details.updateTime = formatDate(new Date(infoDetail.updateTime.toString()), "yyyy.MM.dd");
        switch (parseInt(infoDetail.infoType)) {
            case 1:
                this.details.content = infoDetail.extend.content;
                break;
            case 2:
                this.details.content = infoDetail.extend.basicSituationDescription;
                break;
            case 3:
                this.details.content = infoDetail.extend.primaryJudgment + "\n\n" + infoDetail.extend.unitSystemDescription;
                break;
        }
    },
    beforeDestroy: function beforeDestroy() {
        store.commit("_headerType", 3);
    }
};